<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdhEdition.aspx.cs" Inherits="LAFDC.Web.UI.EditAdherent" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Adherent: Edition</title>
    <link type="text/css" rel="stylesheet" href="skins/style.css"/>
    <script src="javascript/lafdc-helper.js" type="text/javascript"></script>
    <script src="javascript/lafdc-ajax.js" type="text/javascript"></script>
    <script src="javascript/lafdc-routage.js" type="text/javascript"></script>
</head>
<body onload="loadRoutage()">
    <form id="form1" runat="server">
        <div id="header">
        <table style="width: 100%">
            <tr style="height: 30px">
                <td style="width: 3%" align="center">
                    <asp:HyperLink ID="imgAccueil" runat="server" NavigateUrl="default.html"  Target="_parent" ImageUrl="images/home_16x16.PNG" ToolTip="Accueil"></asp:HyperLink></td>
                <td style="width: 70%">
                    Fichier adherent: Edition</td>
                <td style="width: 20%" align="right">
                    <asp:HyperLink ID="imgCancel" runat="server" ImageUrl="images/del.gif" ToolTip="Annuler"></asp:HyperLink>
                </td>
            </tr>
        </table>
        <hr />
    </div>
    <div>
        &nbsp;<table style="width: 814px">
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="4">
                    <b>ETAT CIVILE:</b></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Nom:</td>
                <td colspan="1" style="width: 281px">
                    <asp:TextBox ID="txtNOM" runat="server" OnTextChanged="txtNOM_TextChanged" ToolTip="Nom de l'adherent" ></asp:TextBox></td>
                <td style="width: 140px">
                    Prenom:</td>
                <td style="width: 230px">
                    <asp:TextBox ID="txtPRENOM" runat="server" OnTextChanged="txtPRENOM_TextChanged" ToolTip="Prenom de l'adherent"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Intitule:</td>
                <td style="width: 281px">
                    <asp:DropDownList ID="listIntitule" runat="server" OnSelectedIndexChanged="listIntitule_SelectedIndexChanged">
                        <asp:ListItem>Monsieur</asp:ListItem>
                        <asp:ListItem>Madame</asp:ListItem>
                        <asp:ListItem>Mademoiselle</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 140px">
                    Sit. famille:</td>
                <td style="width: 230px">
                    <asp:DropDownList ID="listSituationFamille" runat="server" OnSelectedIndexChanged="listSituationFamille_SelectedIndexChanged">
                        <asp:ListItem>Celibataire</asp:ListItem>
                        <asp:ListItem>Divorce(e)</asp:ListItem>
                        <asp:ListItem>Famille monoparentale</asp:ListItem>
                        <asp:ListItem>Marie(e)</asp:ListItem>
                        <asp:ListItem>Separation de fait</asp:ListItem>                        
                        <asp:ListItem>Union libre</asp:ListItem>
                        <asp:ListItem>Veuf(ve)</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Prevoyances:</td>
                <td style="width: 281px">
                    <asp:TextBox ID="txtPREV_ID" runat="server" ReadOnly="True"></asp:TextBox></td>
                            <td style="width: 140px">
                                Date de naiss:</td>
                            <td style="width: 230px">
                                <asp:TextBox ID="txtANNIV" runat="server" OnTextChanged="txtANNIV_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="4">
                    <strong>ADRESSE:</strong>
                </td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Adresse:</td>
                <td colspan="3">
                <asp:TextBox ID="txtAdr1" runat="server" Width="90%" OnTextChanged="txtAdr1_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Adresse:</td>
                <td colspan="3">
                <asp:TextBox ID="txtAdr2" runat="server" Width="90%" OnTextChanged="txtAdr2_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Code postal:</td>
                <td style="width: 281px">
                <asp:TextBox ID="txtCodePostal" runat="server" Width="90px" OnTextChanged="txtCodePostal_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                Ville:</td>
                <td style="width: 230px">
                <asp:TextBox ID="txtVille" runat="server" OnTextChanged="txtVille_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="4">
                    <strong>STATUS:</strong></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    AD:</td>
                <td style="width: 281px">
                    <asp:DropDownList ID="listASSO" runat="server" OnSelectedIndexChanged="listASSO_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td style="width: 140px">
                Section:</td>
                <td style="width: 230px">
                    <asp:DropDownList ID="listSECTION" runat="server" OnSelectedIndexChanged="listSECTION_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Adhesion:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtADHESION" runat="server" OnTextChanged="txtADHESION_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                    Retenu:</td>
                <td style="width: 230px">
                            <asp:CheckBox ID="chkRETENU" runat="server" OnCheckedChanged="chkRETENU_CheckedChanged" /></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    OTIG:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtOTIG" runat="server" OnTextChanged="txtOTIG_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                            Ind. retraite:</td>
                <td style="width: 230px">
                            <asp:TextBox ID="txtIRET" runat="server" OnTextChanged="txtIRET_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 160px">
                    Affectation:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtAFFECTATION" runat="server" OnTextChanged="txtAFFECTATION_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                    Routage du journal:</td>
                <td style="width: 230px">
                    <input type="checkbox" ID="chkROUTAGE" onclick="switchRoutage()"/></td>
            </tr>
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="4">
                    <strong>CONTACT:</strong>
                </td>
            </tr>
            <tr style="height: 30px">
                <td colspan="4">
                    <table style="width: 100%">
                        <tr style="height: 30px">
                            <td>
                            </td>
                            <td style="width: 60px">
                                Ref #</td>
                            <td>
                                Type</td>
                            <td>
                                Valeur</td>
                            <td>
                                Description</td>
                        </tr>
                        <tr style="height: 30px">
                            <td></td>
                            <td style="width: 60px">
                                <asp:Label ID="lblRef1" runat="server"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="listContact1" runat="server" Width="100%" DataSourceID="contactDataSource" DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact1_SelectedIndexChanged">
                                </asp:DropDownList></td>
                            <td>
                                <asp:TextBox ID="txtContact1" runat="server" Width="100%" OnTextChanged="txtContact1_TextChanged"></asp:TextBox></td>
                            <td>
                                <asp:TextBox ID="txtContact1Desc" runat="server" Width="100%" OnTextChanged="txtContact1Desc_TextChanged"></asp:TextBox></td>
                        </tr>
                        <tr style="height: 30px">
                            <td></td>
                            <td style="width: 60px">
                                <asp:Label ID="lblRef2" runat="server"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="listContact2" runat="server" Width="100%" DataSourceID="contactDataSource" DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact2_SelectedIndexChanged">
                                </asp:DropDownList></td>
                            <td>
                                <asp:TextBox ID="txtContact2" runat="server" Width="100%" OnTextChanged="txtContact2_TextChanged"></asp:TextBox></td>
                            <td>
                                <asp:TextBox ID="txtContact2Desc" runat="server" Width="100%" OnTextChanged="txtContact2Desc_TextChanged"></asp:TextBox></td>
                        </tr>
                        <tr style="height: 30px">
                            <td></td>
                            <td style="width: 60px">
                                <asp:Label ID="lblRef3" runat="server"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="listContact3" runat="server" Width="100%" DataSourceID="contactDataSource" DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact3_SelectedIndexChanged">
                                </asp:DropDownList></td>
                            <td>
                                <asp:TextBox ID="txtContact3" runat="server" Width="100%" OnTextChanged="txtContact3_TextChanged"></asp:TextBox></td>
                            <td>
                                <asp:TextBox ID="txtContact3Desc" runat="server" Width="100%" OnTextChanged="txtContact3Desc_TextChanged"></asp:TextBox></td>
                        </tr>
                        <tr style="height: 30px">
                            <td></td>
                            <td style="width: 60px">
                                <asp:Label ID="lblRef4" runat="server"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="listContact4" runat="server" Width="100%" DataSourceID="contactDataSource" DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact4_SelectedIndexChanged">
                                </asp:DropDownList></td>
                            <td>
                                <asp:TextBox ID="txtContact4" runat="server" Width="100%" OnTextChanged="txtContact4_TextChanged"></asp:TextBox></td>
                            <td>
                                <asp:TextBox ID="txtContact4Desc" runat="server" Width="100%" OnTextChanged="txtContact4Desc_TextChanged"></asp:TextBox></td>
                        </tr>
                        <tr style="height: 30px">
                            <td></td>
                            <td style="width: 60px">
                                <asp:Label ID="lblRef5" runat="server"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="listContact5" runat="server" Width="100%" DataSourceID="contactDataSource" DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact5_SelectedIndexChanged">
                                </asp:DropDownList></td>
                            <td>
                                <asp:TextBox ID="txtContact5" runat="server" Width="100%" OnTextChanged="txtContact5_TextChanged"></asp:TextBox></td>
                            <td>
                                <asp:TextBox ID="txtContact5Desc" runat="server" Width="100%" OnTextChanged="txtContact5Desc_TextChanged"></asp:TextBox></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="Submit" runat="server" Text="Enregistrer" OnClick="Submit_Click" height="26px"/>
        <asp:Label ID="lblSubmit" runat="server" height="21px" ForeColor="Blue"></asp:Label>&nbsp;<br />
        <asp:Label ID="lblDEBUG" runat="server"></asp:Label>
        <br />
        <asp:SqlDataSource ID="contactDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
            SelectCommand="SELECT [ContactType] FROM [ContactType]"></asp:SqlDataSource>
<!--    <asp:SqlDataSource ID="assoDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
                        SelectCommand="select ad_id from ASSO"></asp:SqlDataSource>
    </div>
    <asp:SqlDataSource ID="sectionDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
                        SelectCommand="select * from SECTION order by [section id]">
                        <SelectParameters>
                        <asp:ControlParameter Name="AD" ControlID="listASSO" PropertyName="SelectedValue" />
                        </SelectParameters>
                    </asp:SqlDataSource>
-->
    </form>
</body>
</html>
